#ifndef __SPP_H__
#define __SPP_H__

#include "bt_types.h"
#include "tra_combined.h"
#include "rfcomm_types.h"

typedef enum _SPPState
{
    SPP_IDLE,
    SPP_CONNECTED,
    SPP_DISCONNECT
}SPP_STATE;


typedef struct _peerDevice
{
    t_bdaddr address;
    rdabt_t_rfcomm_schan schan;
    rdabt_t_rfcomm_dlci dlci;
    SPP_STATE spp_state;
    u_int8   isUsed;
    u_int8   isServer;
    u_int8   data[RDABT_RFCOMM_MAX_FRAME_SIZE];//[128];
    u_int16 length;
    u_int16 sendCount;
    u_int16 full_length;
    u_int16 full_send_count;
    u_int16 max_frame_size;
}SPPPeerDevice;




#define VIRTUAL_PORTS_NUM 1 // 5
#define DUN_PORT_NUM 5         //1-4 for spp server and client use
#define SPP_SERVER_PORT 1     //mtk spp application there are only one server and one client


#endif

